<div id="page-wrapper">
    <div class="row headline-check">
        <div class="col-md-12 headline-title">
            <h3>学员招生 <img src="assets/img/angle-right.png" alt="" class="tubiao"></h3><h4>修改班课合同</h4>
        </div>
    </div>
    <div class="row createbutton" >
        <div class="col-md-2" >
            <button class="search-content" style="background: #4da1ff;color: #fff;	box-shadow: #84bdff 0px 0px 8px;"  onclick="javascript:history.back(-1);" >返回上一页</button>
        </div>
        <div class="col-md-2" >
            <button class="search-content" style="background: #4da1ff;color: #fff;	box-shadow: #84bdff 0px 0px 8px;"   >{{class_name}}</button>
        </div>
    </div>
    <div class="row">
        <div class="col-md-6 revise-left" >
            <div class="containerleft" style="background-color: #f9fffe;">
        <div>
            <span class="daily-list" style="position: relative;top: 20px;background: #f9fffe;">报课单列表</span>
        </div>
        <table class="table table-hover ">
            <thead class="yuangong">
            <tr>
                <th>报课单编号</th>
                <th>实际缴费</th>
                <th>欠费</th>
                <th>报课日期</th>
                <th>申请状态</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <tr ng-repeat="data in enrol_datas ">
                <td>{{data.sn}}</td>
                <td>{{data.tuition_reality}}</td>
                <td>{{data.tuition_lack}}</td>
                <td>{{data.createtime.substring(0,10)}}</td>
                <td ng-if="data.state==0">未申请</td>
                <td ng-if="data.state==1">申请中</td>
                <td ng-if="data.state==2">申请通过</td>s
                <td ng-if="data.state==3">驳回</td>
                <td>
                    <span class="operation fa fa-edit" ng-click="apply($index)" ng-if="data.state==0||data.state==3">申请</span>
                    <span class="operation fa fa-trash-o" ng-click="delete($index)" ng-if="data.state==0||data.state==3">删除</span>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
            <div class="containerleft" style="background-color: #fffdf5;">
        <div>
            <span class="daily-list" style="position: relative;top: 20px;background:#fffdf5;">退课单列表</span>
        </div>
        <table class="table table-hover ">
            <thead class="yuangong">
            <tr>
                <th>所退学费</th>
                <th>退课日期</th>
                <th>申请状态</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody >
            <tr ng-repeat="data in drop_datas ">
                <td>{{data.tuition}}</td>
                <td>{{data.createtime.substring(0,10)}}</td>
                <td ng-if="data.state==0">未申请</td>
                <td ng-if="data.state==1">申请中</td>
                <td ng-if="data.state==2">申请通过</td>s
                <td ng-if="data.state==3">驳回</td>
                <td>
                    <span class="operation fa fa-edit" ng-click="refundapply($index)" ng-if="data.state==0||data.state==3">申请</span>
                    <span class="operation fa fa-trash-o" ng-click="refunddelete($index)" ng-if="data.state==0||data.state==3">删除</span>
                </td>
            </tr>
            </tbody>
        </table>

    </div>
            <div class="containerleft" style="background-color: #fefcff;" >
        <div>
            <span class="daily-list" style="position: relative;top: 20px;background:#fefcff;">补交记录</span>
        </div>
        <table class="table table-hover ">
            <thead class="yuangong">
            <tr>
                <th>补交金额</th>
                <th>缴费日期</th>
                <th>缴费类型</th>
                <th>申请状态</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody >
            <tr ng-repeat="data in mend_datas">
                <td>{{data.amount}}</td>
                <td>{{data.createtime.substring(0,10)}}</td>
                <td>{{data.method_name}}</td>
                <td ng-if="data.state==0">未申请</td>
                <td ng-if="data.state==1">申请中</td>
                <td ng-if="data.state==2">申请通过</td>s
                <td ng-if="data.state==3">驳回</td>
                <td>
                    <span class="operation fa fa-edit" ng-click="mend_apply($index)" ng-if="data.state==0||data.state==3">申请</span>
                </td>
            </tr>
            </tbody>
        </table>

    </div>
        </div>
        <div class="col-md-6 revise-right" >
            <div class="containerright">
                <table width="100%" align="center">
                    <tbody class="revise-information">
                    <tr style="border-bottom: 1px solid #e2e2e3">
                        <td  height="52">合同编号：</td>
                        <td>{{findstudent.pact_sn}}</td>
                        <td>创建合同日期：</td>
                        <td>{{findstudent.createtime.substring(0,10)}}</td>
                        <td></td>
                        <td>
                            <button class="search-content" style="background: #4da1ff;color: #fff;	box-shadow: #84bdff 0px 0px 8px;" ng-click="submits()">提交</button>
                        </td>
                    </tr>
                    <tr >
                        <td height="52" style="color: #8c8c8c">学员姓名：</td>
                        <td>{{findstudent.student_name}}</td>
                        <td style="color: #8c8c8c">学员卡号：</td>
                        <td>{{findstudent.student_sn}}</td>
                        <td style="color: #8c8c8c">来源学校：</td>
                        <td>{{findstudent.school}}</td>
                    </tr>
                    <tr >
                        <td height="52" style="color:#8c8c8c">年级：</td>
                        <td>{{findstudent.grade_name}}</td>
                        <td style="color: #8c8c8c">手机号：</td>
                        <td ><span ng-if="findstudent.mobile1!=null">{{findstudent.mobile1}} </span><span ng-if="findstudent.mobile2!=null">{{findstudent.mobile2}}</span><span ng-if="findstudent.mobile3!=null">{{findstudent.mobile3}}</span></td>
                        <td style="color: #8c8c8c">所报校区：</td>
                        <td>{{findstudent.campus_name}}</td>
                    </tr>
                    <tr>
                        <td height="52" style="color: #8c8c8c" >负责人职务：</td>
                        <td><span class="responsibility">{{findstudent.role_name}}</span></td>
                        <td style="color: #8c8c8c">负责人：</td>
                        <td> <div class="list-re" style="background: #fef6f9;border: 1px solid #fce5ee;margin: 0 auto">{{findstudent.staff_name}}</div></td>
                        <td style="color: #8c8c8c">调入校区：</td>
                        <td>
                            <div class="tankuang-tf">
                                <schoolcampus></schoolcampus>
                            </div>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <div class="containerright">
        <table width="100%" align="center">
            <tbody class="revise-information">
            <tr  style="border-bottom: 1px solid #e2e2e3">
                <td  height="52"><span class="revise-list" >班课报课情况</span></td>
                <td></td>
                <td></td>
                <td></td>
            </tr>
            <tr>
                <td height="52">班级</td>
                <td>科目</td>
                <td>已报节数</td>
                <td>消耗节数</td>
                <td>单价</td>
                <td>是否满科</td>
            </tr>
            <tr ng-repeat="data in subjectpactclazz">
                <td height="52"><span class="responsibility-class" style="width: 180px;background: #fef6f9;border: 1px solid #fce5ee">{{class_name}}</span></td>
                <td><span class="responsibility-class" style="background: #edf5ff;border: 1px solid #f2faff">{{data.subject_name}}</span></td>
                <td><span class="responsibility-class" style="background: #eae7ff;border: 1px solid #e7e8ff">{{data.number}}</span></td>
                <td><span class="responsibility-class" style="background: #eae7ff;border: 1px solid #e7e8ff">{{data.number_use}}</span></td>
                <td><span class="responsibility-class"  style="background: #fef6f9;border: 1px solid #fce5ee">{{data.price}}</span></td>
                <td ng-if="data.is_total==0"><span class="responsibility-class" style="background: #edf5ff;border: 1px solid #f2faff" >否</span></td>
                <td ng-if="data.is_total==1"><span class="responsibility-class" style="background: #edf5ff;border: 1px solid #f2faff" >是</span></td>
            </tr>
            </tbody>
        </table>
    </div>
            <div class="containerright">
                <table width="100%" align="center">
                    <tbody class="revise-information">
                    <tr  style="border-bottom: 1px solid #e2e2e3">
                        <td  height="52"><span class="revise-list" >学费信息</span></td>
                        <td></td>
                        <td></td>
                        <td></td>
                        <td></td>
                        <td></td>
                        <td></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td height="52" style="color: #8c8c8c">优惠档：</td>
                        <td>
                            <div class="tankuang-reviseclass">
                                <saleclass></saleclass>
                            </div>
                        </td>
                        <td style="color: #8c8c8c">减免：</td>
                        <td><input type="number" ng-model="sale_derate" class="responsibility"  style="border: none"></td>
                        <td style="color: #8c8c8c">优惠金额：</td>
                        <td><input type="number" ng-model="sale_tuition" class="responsibility"  style="border: none"></td>
                        <td style="color: #8c8c8c">总学费：</td>
                        <td>{{findstudent.tuition_total}}</td>
                    </tr>
                    <tr>
                        <td height="52" style="color: #8c8c8c">应缴学费：</td>
                        <td><input type="number" ng-model="should_tuition" class="responsibility" style="border: none"></td>
                        <td style="color: #8c8c8c">已缴学费：</td>
                        <td>{{findstudent.tuition_reality}}</td>
                        <td style="color: #8c8c8c">所欠学费：</td>
                        <td><input type="number" ng-model="owed_tuition" class="responsibility"  style="border: none"></td>
                        <td></td>
                        <td>
                            <button class="search-content" style="background: #4da1ff;color: #fff;	box-shadow: #84bdff 0px 0px 8px;" ng-click="updata()">提交</button>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
    <!--修改报课单-->
    <!--<div class="container-fluid text-center">-->
        <!--&lt;!&ndash; 模态框（Modal） &ndash;&gt;-->
        <!--<div class="modal fade" id="dailyCourse" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">-->
            <!--<div class="modal-dialog" style="width: 1000px;">-->
                <!--<div class="modal-content" >-->
                    <!--<div class="modal-header">-->
                        <!--<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>-->
                        <!--<h2 class="modal-title" > <span class="fa fa-edit">创建报课单</span></h2>-->
                    <!--</div>-->
                    <!--<form action="index.php" method="post">-->
                        <!--<div class="modal-body">-->
                            <!--&lt;!&ndash; 提交表单到服务器 &ndash;&gt;-->
                            <!--<table width="100%">-->
                                <!--<tbody class="modal-information">-->
                                <!--<tr>-->
                                    <!--<td  height="52" style="width: 100px;font-size: 24px">报课单编号：</td>-->
                                    <!--<td>-->
                                        <!--<input type="text" class="form-control" style="background: #fef6f9;border: 1px solid #fce5ee"  ng-model="applyTheClass">-->
                                    <!--</td>-->
                                <!--</tr>-->
                                <!--<tr>-->
                                    <!--<td  height="52" >-->
                                        <!--<select class="tankuang">-->
                                            <!--<option value="" disabled selected style="display: none;">17春季物化生冲刺班</option>-->
                                            <!--<option>17春季物化生冲刺班</option>-->
                                            <!--<option>17春季物化生冲刺班</option>-->
                                        <!--</select>-->
                                    <!--</td>-->
                                <!--</tr>-->
                                <!--</tbody>-->
                            <!--</table>-->
                            <!--<table width="100%">-->
                                <!--<tbody class="class-daily">-->
                                <!--<tr class="paikeconter">-->
                                    <!--<td  height="52" >科目</td>-->
                                    <!--<td>单价</td>-->
                                    <!--<td>节数</td>-->
                                    <!--<td>老师</td>-->
                                    <!--<td>时/次（每次小时数）</td>-->
                                    <!--<td>学费</td>-->
                                <!--</tr>-->
                                <!--<tr class="paikeconter">-->
                                    <!--<td  height="52" >-->
                                        <!--<select class="tankuang-tf"  >-->
                                            <!--<option value="" disabled selected style="display: none;">语文</option>-->
                                            <!--<option>语文</option>-->
                                            <!--<option>语文</option>-->
                                        <!--</select>-->
                                    <!--</td>-->
                                    <!--<td>-->
                                        <!--<input type="text" class="form-control" style="background: #fef6f9;border: 1px solid #fce5ee" ng-model="applyTheClass">-->
                                    <!--</td>-->
                                    <!--<td>-->
                                        <!--<input type="text" class="form-control" style="background: #eae7ff;border: 1px solid #e7e8ff"  ng-model="applyTheClass">-->
                                    <!--</td>-->
                                    <!--<td>-->
                                        <!--<input type="text" class="form-control"  style="background: #edf5ff;border: 1px solid #f2faff" ng-model="applyTheClass">-->
                                    <!--</td>-->
                                    <!--<td>-->
                                        <!--<input type="text" class="form-control"  style="background: #eae7ff;border: 1px solid #e7e8ff"  ng-model="applyTheClass">-->
                                    <!--</td>-->
                                    <!--<td>-->
                                        <!--<input type="text" class="form-control" style="background: #fef6f9;border: 1px solid #fce5ee" ng-model="applyTheClass">-->
                                    <!--</td>-->
                                    <!--<td>-->
                                        <!--<input type="button" value="增加" style="width: 50px;" id="addBtn">-->
                                    <!--</td>-->
                                <!--</tr>-->
                                <!--</tbody>-->
                            <!--</table>-->
                            <!--<table width="100%">-->
                                <!--<tbody class="modal-tf">-->
                                <!--<tr>-->
                                    <!--<td height="52">缴费方式</td>-->
                                    <!--<td height="52">实际缴费</td>-->
                                    <!--<td height="52">总学费</td>-->
                                    <!--<td height="52">欠费</td>-->
                                <!--</tr>-->
                                <!--<tr class="paikeconter">-->
                                    <!--<td height="52">-->
                                        <!--<select class="tankuang-tf" >-->
                                            <!--<option value="" disabled selected style="display: none;"></option>-->
                                            <!--<option>现金</option>-->
                                            <!--<option>支付宝</option>-->
                                            <!--<option>现金</option>-->
                                        <!--</select>-->
                                    <!--</td>-->
                                    <!--<td>-->
                                        <!--<input type="text" class="form-control"  style="background: #fef6f9;border: 1px solid #fce5ee" ng-model="applyTheClass">-->
                                    <!--</td>-->
                                    <!--<td>-->
                                        <!--<input type="text" class="form-control"   style="background: #fef6f9;border: 1px solid #fce5ee" ng-model="applyTheClass">-->
                                    <!--</td>-->
                                    <!--<td>-->
                                        <!--<input type="text" class="form-control"  style="background: #fef6f9;border: 1px solid #fce5ee" ng-model="applyTheClass">-->
                                    <!--</td>-->
                                <!--</tr>-->
                                <!--<tr>-->
                                    <!--<td height="52">校长</td>-->
                                    <!--<td height="52">学生/家长</td>-->
                                <!--</tr>-->
                                <!--<tr class="paikeconter">-->
                                    <!--<td>-->
                                        <!--<input type="text" class="form-control" style="background: #edf5ff;border: 1px solid #f2faff" ng-model="applyTheClass">-->
                                    <!--</td>-->
                                    <!--<td>-->
                                        <!--<input type="text" class="form-control" style="background: #edf5ff;border: 1px solid #f2faff" ng-model="applyTheClass">-->
                                    <!--</td>-->
                                <!--</tr>-->
                                <!--</tbody>-->
                            <!--</table>-->
                        <!--</div>-->
                        <!--<div class="modal-footer">-->
                            <!--<button type="submit" class="btn btn-primary-tf" >保存</button>-->
                        <!--</div>-->
                    <!--</form>-->
                <!--</div>-->
                <!--&lt;!&ndash; /.modal-content &ndash;&gt;-->
            <!--</div>-->
            <!--&lt;!&ndash; /.modal &ndash;&gt;-->
        <!--</div>-->
    <!--</div>-->
    <!--修改退课单-->
    <!--<div class="container-fluid text-center">-->
        <!--&lt;!&ndash; 模态框（Modal） &ndash;&gt;-->
        <!--<div class="modal fade" id="withdraw" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">-->
            <!--<div class="modal-dialog" style="width: 1000px;">-->
                <!--<div class="modal-content" >-->
                    <!--<div class="modal-header">-->
                        <!--<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>-->
                        <!--<h2 class="modal-title" > <span class="fa fa-edit">退课</span></h2>-->
                    <!--</div>-->
                    <!--<form action="index.php" method="post">-->
                        <!--<div class="modal-body">-->
                            <!--&lt;!&ndash; 提交表单到服务器 &ndash;&gt;-->
                            <!--<table width="100%" align="center">-->
                                <!--<tbody class="modal-information">-->
                                <!--<tr>-->
                                    <!--<td  height="52"></td>-->
                                    <!--<td>科目</td>-->
                                    <!--<td>单价</td>-->
                                    <!--<td>实报节数</td>-->
                                    <!--<td>已上节数</td>-->
                                <!--</tr>-->
                                <!--<tr class="paikeconter">-->
                                    <!--<td height="52" style="width: 30px">-->
                                        <!--<input name="Fruit" style="width: 20px;" type="checkbox" >-->
                                    <!--</td>-->
                                    <!--<td>-->
                                        <!--<input type="text" class="form-control" style="background: #edf5ff;border: 1px solid #f2faff" ng-model="applyTheClass">-->
                                    <!--</td>-->
                                    <!--<td>-->
                                        <!--<input type="text" class="form-control" style="background: #fef6f9;border: 1px solid #fce5ee"  ng-model="applyTheClass">-->
                                    <!--</td>-->
                                    <!--<td>-->
                                        <!--<input type="text" class="form-control" style="background: #eae7ff;border: 1px solid #e7e8ff"  ng-model="applyTheClass">-->
                                    <!--</td>-->
                                    <!--<td>-->
                                        <!--<input type="text" class="form-control" style="background: #eae7ff;border: 1px solid #e7e8ff"  ng-model="applyTheClass">-->
                                    <!--</td>-->
                                <!--</tr>-->
                                <!--<tr class="paikeconter">-->
                                    <!--<td height="52" style="width: 30px">-->
                                        <!--<input name="Fruit" style="width: 20px;" type="checkbox" >-->
                                    <!--</td>-->
                                    <!--<td>-->
                                        <!--<input type="text" class="form-control" style="background: #edf5ff;border: 1px solid #f2faff" ng-model="applyTheClass">-->
                                    <!--</td>-->
                                    <!--<td>-->
                                        <!--<input type="text" class="form-control" style="background: #fef6f9;border: 1px solid #fce5ee"   ng-model="applyTheClass">-->
                                    <!--</td>-->
                                    <!--<td>-->
                                        <!--<input type="text" class="form-control"  style="background: #eae7ff;border: 1px solid #e7e8ff"  ng-model="applyTheClass">-->
                                    <!--</td>-->
                                    <!--<td>-->
                                        <!--<input type="text" class="form-control" style="background: #eae7ff;border: 1px solid #e7e8ff" ng-model="applyTheClass">-->
                                    <!--</td>-->
                                <!--</tr>-->
                                <!--</tbody>-->
                            <!--</table>-->
                            <!--<table width="100%">-->
                                <!--<tbody class="modal-tf">-->
                                <!--<tr>-->
                                    <!--<td height="52">总用费</td>-->
                                    <!--<td height="52">退课前折扣</td>-->
                                    <!--<td height="52">减免</td>-->
                                <!--</tr>-->
                                <!--<tr class="paikeconter">-->
                                    <!--<td>-->
                                        <!--<input type="text" class="form-control"  style="background: #fef6f9;border: 1px solid #fce5ee" ng-model="applyTheClass">-->
                                    <!--</td>-->
                                    <!--<td>-->
                                        <!--<input type="text" class="form-control"   style="background:#fffae7;border: 1px solid #FDF3CC;" ng-model="applyTheClass">-->
                                    <!--</td>-->
                                    <!--<td>-->
                                        <!--<input type="text" class="form-control"   style="background:#fffae7;border: 1px solid #FDF3CC;" ng-model="applyTheClass">-->
                                    <!--</td>-->
                                <!--</tr>-->
                                <!--<tr>-->
                                    <!--<td height="52">实际缴费</td>-->
                                    <!--<td height="52">消耗用费</td>-->
                                    <!--<td height="52">调档后折扣</td>-->
                                    <!--<td height="52">应退费</td>-->
                                <!--</tr>-->
                                <!--<tr class="paikeconter">-->
                                    <!--<td>-->
                                        <!--<input type="text" class="form-control" style="background: #fef6f9;border: 1px solid #fce5ee" ng-model="applyTheClass">-->
                                    <!--</td>-->
                                    <!--<td>-->
                                        <!--<input type="text" class="form-control" style="background: #fef6f9;border: 1px solid #fce5ee" ng-model="applyTheClass">-->
                                    <!--</td>-->
                                    <!--<td>-->
                                        <!--<input type="text" class="form-control"  style="background:#fffae7;border: 1px solid #FDF3CC;" ng-model="applyTheClass">-->
                                    <!--</td>-->
                                    <!--<td>-->
                                        <!--<input type="text" class="form-control" style="background: #fef6f9;border: 1px solid #fce5ee" ng-model="applyTheClass">-->
                                    <!--</td>-->
                                <!--</tr>-->
                                <!--</tbody>-->
                            <!--</table>-->
                        <!--</div>-->
                        <!--<div class="modal-footer">-->
                            <!--<button type="submit" class="btn btn-primary-tf" >保存</button>-->
                        <!--</div>-->
                    <!--</form>-->
                <!--</div>-->
                <!--&lt;!&ndash; /.modal-content &ndash;&gt;-->
            <!--</div>-->
            <!--&lt;!&ndash; /.modal &ndash;&gt;-->
        <!--</div>-->
    <!--</div>-->



</div>
